import { pushResponseInterceptor } from 'lfun-bg-comp';

pushResponseInterceptor('get:/school/v1/new-teachers/page', r => {
  return {
    items: [
      {
        id: 1,
        teacher_name: '张三',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '待提交',
      },
      {
        id: 2,
        teacher_name: '张三',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '待审核',
      },
      {
        id: 3,
        teacher_name: '张三',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '已提交',
      },
      {
        id: 4,
        teacher_name: '张三',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '已拒绝',
      },
    ],
  };
});

pushResponseInterceptor('post:/school/v1/new-teachers/newteacher', r => {
  return r;
});

pushResponseInterceptor('get:/school/v1/new-teachers/new-teacher-launch', r => {
  return {
    items: [
      {
        id: 1,
        teacher_name: '张三',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        approval_status: 'peding',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '待提交',
      },
      {
        id: 2,
        teacher_name: '张三',
        approval_status: 'peding',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '待审核',
      },
      {
        id: 3,
        teacher_name: '张三',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        approval_status: 'peding',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '已提交',
      },
      {
        id: 4,
        teacher_name: '张三',
        teacher_id_number: 'GG21022201209012419',
        gender: '女',
        approval_status: 'peding',
        teacher_employer: '新市民张家屯学校',
        highest_education: '本科',
        political_status: '中共党员',
        in_post: '是',
        employment_form: '人事代理',
        enter_school_time: '2012-05',
        teacher_approval_status: '已拒绝',
      },
    ],
  };
});
